<template>
  <div class="right_box">
    <div class="phone_box">
      <div class="header">
        <el-icon>
          <close-bold />
        </el-icon>
        <h3>{{ $attrs.label || '页面标题' }}</h3>
      </div>
      <div class="content">
        <slot></slot>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
  .tabs_box {
    :deep(.el-tabs__item) {
      margin: 0 53px;
      font-size: 18px;
    }

    :deep(.el-tabs__content) {
      border-radius: 0 0 25px 25px;
    }
  }

  .right_box {
    width: 300px;
    padding: 15px;
    height: 560px;
    background-color: #f3fafb;
    border: solid 2px #d2d8db;
    border-radius: 40px;

    .phone_box {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      border-radius: 30px;
      background-color: #fff;
      font-family: STHeitiSC-Medium, STHeitiSC;

      .header {
        display: grid;
        grid-template-columns: 20px 1fr;
        grid-template-rows: 44px;
        border-bottom: 1px solid #eee;

        .icon {
          padding: 17px 0 0 10px;
        }

        h3 {
          display: grid;
          place-content: center;
          padding-right: 20px;
        }
      }
    }
  }
</style>
